<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use GatewayWorker\Lib\Gateway;

class UserController extends Controller
{
    public function getUser()
    {
        var_dump(self::$userData);//用户数据
        var_dump(self::$userId);//用户id
        var_dump(self::$userToken);//用户token
        var_dump(self::$client_id);//client_id
        var_dump(self::$request);//接收client发送过来的数据
        Gateway::sendToClient(self::$client_id,toJson(self::$userData));
    }
}
